namespace Todos.Infrastructure.EntityFrameworkCore.Configurations;

public class TodoItemConfiguration : EntityConfigurationBase<TodoItem>
{
    public override void Configure(EntityTypeBuilder<TodoItem> builder)
    {
        builder.Property(e => e.Title).HasMaxLength(255).IsRequired();
        builder.Property(e => e.Description).HasMaxLength(1000);
    }
}
